/**
 * Class: FRange
 *
 * Purpose: A range limiter (within min-max, inclusive)
 *
 * Created: Feb 22, 2010 @ 9:12:03 PM
 * @author Ken Scott
 */
package org.openfantasia.util.math;

public class FRange {

	private float min;

	private float max;


	protected FRange() {
	}


	public FRange(float min, float max) {
		this.min = min;
		this.max = max;
	}


	public float getMin() {
		return min;
	}


	public void setMin(float min) {
		this.min = min;
	}


	public float getMax() {
		return max;
	}


	public void setMax(float max) {
		this.max = max;
	}


	public boolean isWithin(float value) {
		return (min <= value) && (value <= max);
	}
}